//===========================================================================
// --- T H E   C O M M A N D E R PV(Playable Version) ---
// DKSlayer - Project Head and Creater of Custom Trigger
// AIAndy - Designed and Created the Custom AI Files
// Zalamander - AI Optimization and Fixer
//===========================================================================

TABLE IF CONTENTS
I. Introduction to The Commander
II. Commander Installation
III. Working with Colors and IDs
IV. The Basics of a Command
V. The Commander Options
VI. Cancel Commands
VII. No Commands
VIII. Build Commands
IX. Attack Commands
X. Queuing Commands
XI. AI, Use Beyond The Commander
XII. Misc.
XV. About
XIV. Links


I. Introduction to The Commander
The Commander is an add-on that can be added to any map. It uses One Custom Text trigger and Modified AI files to accomplish this. The Commander allows users to command their Computer Allies through the use of Chat Commands. (Example) Cmd: Blue Attack Red - This would cause Player blue attack Red. There are many more Commands that help you Succeed at Victory.

II. Commander Installation
To Install this version Extract the Map to the Warcraft III\Maps Folder. You are ready to go. Have Fun :)

III. Working with Colors and Ids
The Commander requires for many of the Commands the Color or ID of your Ally. These are the colors used for The Commander = Red - Blue - Cyan - Purple - Yellow - Orange - Green - Pink - Light Gray - Light Blue - Aqua - Brown. You can also use the player's ID number. Now this would be hard to remember so we have included the Colorboard. It will show you the color and the ID number of any player. For more one these see the (V. The Commander Options)


IV. The Basics of a Command
Here you will learn what it takes to issue commands. To issue a command you need to hit enter, to open up the chat box. All commands start with "Cmd:". This is what activates the Commander. After that you will enter the command you would like to issue. Look at sections (V. - X.) for such commands. 
Now typing the commands correctly is necessary. The Commander can't interpret, so you will get an error if you incorrectly type any part of the command. Now to give users some Leeway, we have added some features. All words have a lower case equivalent, (example) Select can be select as well. This works for all Commands. Also some commands have short had versions, (example) Queue, Que.
In the Upcoming Sections, you will notice that when I show a command, (example) Cmd: (Ally Color) Attack <Here or Select>, their are () and <> to help. When their is a () it means that part of the command has many different values, (example) colors or a number. If <> then it means only the commands within those can be issued. Using the above Example, only Here or Select can be used. One other Feature we have is the ability to issue a command using "All" instead of the Ally Color. This issues the command to All Command able Allies. Not available on all commands so you will need to read them to see.


V. The Commander Options
Here are Commands that don't require an Ally.
Cmd: Help
This displays all the commands and a description of them to the user, in the hope that it might help them if they have a problem. Although Reading this ReadMe is suggested for optimum Usage.
Cmd: (Ally) Tribute <Gold or Lumber> (How Much)
This command causes that ally to give you resources. I have placed a cap, so it might tell you it doesn't have enough, if it is low on dough. Also you can type a short hand version. Cmd: Blue Trib G 50. Change G to L for Lumber.
Cmd: (Ally) Chatter
This will turn on/off all the messages the computer will send you. "All" can be used for this command.

VI. Cancel Commands
These Commands are used to Cancel Various Commands you have issued. "All" can be used with all these commands.
Cmd: (Ally) Cancel Attack
This Cancels any Attack Commands that you have been sent for that ally.
Cmd: (Ally) Cancel Build
This Cancels any Build Commands that you have been sent for that ally.
Cmd: (Ally) Cancel Queue
This Cancels all Queued Commands that you have been sent for that ally.
Cmd: (Ally) Cancel All
This Cancels all Commands that you have been sent for that ally.


VII. No Commands
These Commands, will cause the computer to stop certain attacks. It will stay that way unless you use a Cancel Attack or Cancel All command. "All" can be used with all these commands.
Cmd: (Ally) No Attacks
Causes that Ally to Attack nothing, other than in Self Defense.
Cmd: (Ally) No Creep
Causes that Ally to not attack creeps, other than in Self Defense.
Cmd: (Ally) No Players
Causes that Ally to not Attack Players, other than in Self Defense


VIII. Build Commands
These Commands make the computer count that unit type and if it does not have the amount you indicated it will build till it has that many. "All" can be used with all these commands.
Cmd: (Ally) Build G2G (How Many)
Makes the Ally have at least, the amount you set, Ground to Ground Units. 
Cmd: (Ally) Build G2A (How Many)
Makes the Ally have at least, the amount you set, Ground to Air Units. 
Cmd: (Ally) Build A2G (How Many)
Makes the Ally have at least, the amount you set, Air to Ground Units. 
Cmd: (Ally) Build A2A (How Many)
Makes the Ally have at least, the amount you set, Air to Air Units. 


IX. Attack Commands
These Commands are used to Attack/Guard Players. If issued to a Ally or yourself it will guard them, if enemy attack. If you are  "All" can be used with all these commands.
Cmd: (Ally) Attack Here
This causes that Ally to Attack/Guard the Location of the current Screen Position. Will continue attacking/guarding that location until a Cancel All or Cancel Attack is used.
Cmd: (Ally) Attack Select
This causes that Ally to Attack/Guard the currently Selected Unit. It will do this until that unit is dead. This works on buildings as well. If this is used on an Ally it will guard that unit or building until unit/building is destroyed
Cmd: (Ally) Attack (Enemy)
This will cause that Ally to Attack/Guard the Player. It will continue until player is wiped out or Stop command issued.


X. Queuing Commands
These Commands are used to Queue Commands. You will start by using the Queue Attack commands after you got all your Attacks Queued. Then use the Queue Start to begin. "All" can be used with all these commands.
Cmd: (Ally) Queue <Start or Restart>
Use this command to either Start or Restart your Queued Commands
Cmd: (Ally) Queue Pause
This will pause the Queued Commands
Cmd: (Ally) Queue Unpause
This will Unpause the Queued Commands
Cmd: (Ally) Queue Undo
This will remove the last Queued Command.
Cmd: (Ally) Queue Attack <Here or Select>
This Will Add this Command to the Queued Commands, to learn more about how to use Attack Here and Select see section (IX. Attack Commands)
Cmd: (Ally) Cancel Queue
This Cancels all Queued Commands that you have been sent for that ally. Same as the Command shown in section (VI. Cancel Commands)

XI. The AI, use beyond The Commander
The AI can be used in any map for those that want a challenge. Just do step 2 to any map, and you will be ready for a computer that present you with an alternate ending :). Try this to any of your maps, it will not hurt them in any way. If you want to return that map to the Blizzard AI just open it in WE and save it. This deletes the Custom AI files. Here are some of the things this AI does.
- Computers on the same team will automaticaly tribute gold and lumber to each other. 
- Computers will automaticaly play more aggressive if upkeep get higher or enemy forces get smaller. 
- Computer chooses strategy and behavior depending on enemy race, ally race, expansion distance and upkeep.

XII. Misc.
Learning to use The Commander may seem Daunting, but is actually fairly easy after you get the hang of it. When you issue a command, it will be shown just like a Chat command. So make sure that Chat is set to allies, not all. Would suck to have Blue know that last attack was meant for them. Have fun with The Commander.

XIII. About
DKSlayer - Project Head and Creater of Custom Trigger
AIAndy - Designed and Created the Custom AI Files
Zalamander - AI Optimization and Fixer
If you use this please give Credit where credit is due. Thank You.

XIV. Links
These are links for various things you might need or want to know.
To post thanks, Ideas, Comments for the Commander goto the Link Below
http://www.wc3campaigns.com/forums/showthread.php?s=741f6059d0016f728fd9e3cfd236275c&postid=73687#post73687
For Problems, Bugs, or Errors goto the link below.
http://www.wc3campaigns.com/forums/showthread.php?s=741f6059d0016f728fd9e3cfd236275c&threadid=9126
For the Link to the Required VB files go here.
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=BA9D7924-4122-44AF-8AB4-7C039D9BF629